import Cookies from 'js-cookie';

export const TokenKey = 'channel_demo_token';
export const H5TokenKey = 'channel_demo_m_token';

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

export function getH5Token() {
  return Cookies.get(H5TokenKey);
}

export function setH5Token(token) {
  return Cookies.set(H5TokenKey, token);
}

export function removeH5Token() {
  return Cookies.remove(H5TokenKey);
}
